<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/view/common/includes.jsp" %>
<%@ include file="/WEB-INF/view/inc.jsp" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<style>
    .panel-body {
        border-width: 0px;
    }
</style>
<body>
<table id="grid" class="easyui-treegrid" fit="true"
       data-options="url: '<%=contextPath%>/sys/resource/list',method: 'post',rownumbers: true,idField: 'id',treeField: 'resourceName', fitColumns:'true',toolbar: '#toolbar'">
    <thead>
    <tr>
        <th data-options="field:'resourceName'" width="150">资源名称</th>
        <th data-options="field:'resourceType',dictionary:'resourceType',formatter:sy_dict" width="50">资源类型</th>
        <th data-options="field:'resourceUrl'" width="200">资源URL</th>
        <th data-options="field:'iconCls'" width="80">图标</th>
        <th data-options="field:'clickFun'" width="300">事件函数</th>
        <th data-options="field:'sortIndex'" width="50">排序</th>
        <th data-options="field:'status',dictionary:'status',formatter:sy_dict" width="50">状态</th>
    </tr>
    </thead>
</table>
<!-- 按钮-->
<div id="toolbar" style="display: none;">
    <t:button action="resource_add" iconCls="icon-add" buttonName="新增" onclick=""/>
    <t:button action="resource_edit" iconCls="icon-edit" buttonName="编辑" onclick=""/>
    <t:button action="resource_remove" iconCls="icon-remove" buttonName="删除" onclick=""/>
    <t:button action="resource_fast" iconCls="icon-edit" buttonName="快速配置" onclick=""/>
</div>
</body>
</html>



